//
//  SXMsgCenterController.m
//  Weibo1
//
//  Created by dfpo on 15/2/14.
//  Copyright (c) 2015年 dfpo. All rights reserved.
//

#import "SXMsgCenterController.h"

@implementation SXMsgCenterController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // 此名写在viewDidLoad无效，写在viewWillAppear有效
    //  因为在添加子控制器时，给控制器设置背景色的时候，view已经加载，后面再添加这个属性晚了，
    //把设置那个随机色删了，这个属性写在viewDidLoad就可以正常使用了
    self.navigationItem.rightBarButtonItem.enabled = NO;
}
- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"写私信" style:UIBarButtonItemStylePlain target:self action:@selector(WritePrivateMsgClick)];
}

- (void)WritePrivateMsgClick {
    SXLog(@"WritePrivateMsgClick");
}

@end
